#!/bin/bash

test="mtu9000"
dir=$test/p

echo "dir $dir"

num_client=$1
op_client=$2
ip_client=192.168.138.2

rm -rf $dir/*

for((i=1; i<=$num_client; i++))
do
    echo "iperf3 -c $ip_client -p 5200+$i -t 60 -Z -O 10 --logfile ${dir}/iperf3_$i.log $op_client "
    iperf3 -c $ip_client -u -b 100g -p `expr 5200 + $i` -t 60 -Z -O 10 -f g --logfile $dir/iperf3_$i.log $op_client &
    #iperf3 -c $ip_client -t 60 -Z -O 10 --logfile $dir/iperf3_$i.log $op_client &
done
